/*
	The mapping for each property of User will correspond to a property sent back
	from ColdFusion via JSON return.  This is the all-important glue that makes this
	object function within the Ext components.
 */

// Create the CFQuery JSON reader which we'll then use in the data store
MessageTemplate = Ext.data.Record.create
(
	[
		{name: 'messageTemplateId', type: 'int', mapping: 'MESSAGETEMPLATEID'}
		,{name: 'name', type: 'string', mapping: 'NAME'}
		,{name: 'format', type: 'string', mapping: 'FORMAT'}
		,{name: 'isApproved', type: 'boolean', mapping: 'ISAPPROVED'}
		,{name: 'comment', type: 'string', mapping: 'COMMENT'}
		,{name: 'subject', type: 'string', mapping: 'SUBJECT'}
		,{name: 'layout', type: 'string', mapping: 'LAYOUT'}
		,{name: 'body', type: 'string', mapping: 'BODY'}
	]
);